package com.youlai.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.system.model.entity.Carousel;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CarouselMapper extends BaseMapper<Carousel> {

    Carousel getByUrl(String imageUrl);

    int addCarousel(Carousel carousel);

    Carousel getById(int id);

    List<Carousel> getCarouselList();
}